Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use info plist preprocessor #73

Closed
wants to merge 19 commits into from

Conversation

stonerl
Copy link
Contributor

@stonerl stonerl commented Feb 23, 2025

use Info.plist preprocessor for copyright year

Instead of manually modifying the NSHumanReadableCopyright key in every Info.plist, we make use of the Info.plist preprocessor.

Therefore, the current year has to be changed only in one place.

Project Settings -> Build Settings -> Info.plist Preprocessor Definitions

Since this makes changes to project.pbxproj it requires the following PRs to be merged first to avoid conflicts:

This is for the main UI built with Interface Builder

Signed-off-by: Toni Förster <toni.foerster@icloud.com>
This is used for all strings in the .swift files.

Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
@stonerl stonerl force-pushed the use-info-plist-preprocessor branch from 6c27260 to 23fdb26 Compare February 23, 2025 14:01
@stonerl stonerl changed the title PR [3/3]Use info plist preprocessor PR [3/3] Use info plist preprocessor Feb 23, 2025
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
@stonerl stonerl force-pushed the use-info-plist-preprocessor branch from 23fdb26 to dcab06a Compare February 24, 2025 10:06
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
@stonerl stonerl marked this pull request as draft February 24, 2025 12:07
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Signed-off-by: Toni Förster <toni.foerster@icloud.com>
Instead of manually modifying the `NSHumanReadableCopyright` key in every Info.plist, we make use of the Info.plist preprocessor.

Therefore, the current year has to be changed only in one place.

Project Settings -> Build Settings -> Info.plist Preprocessor Definitions

Signed-off-by: Toni Förster <toni.foerster@icloud.com>
@stonerl stonerl force-pushed the use-info-plist-preprocessor branch from dcab06a to c23d608 Compare February 24, 2025 12:27
@stonerl
Copy link
Contributor Author

stonerl commented Feb 24, 2025

Since Info.plists are also translatable now, I need to find a different way to do this.

@stonerl stonerl changed the title PR [3/3] Use info plist preprocessor Use info plist preprocessor Feb 24, 2025
@stonerl stonerl closed this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant